package com.example.starter.utils


import org.babyfish.jimmer.sql.kt.newKSqlClient
import org.babyfish.jimmer.sql.runtime.ScalarProvider
import java.sql.DriverManager

/**
 * @author Enaium
 */
val sqlClient = newKSqlClient {
  setConnectionManager {
    Class.forName("com.mysql.cj.jdbc.Driver");
    DriverManager.getConnection("jdbc:mysql://localhost:3306/vertx_test02", "root", "root").use {
      proceed(it)
    }
  }


//  setEntityManager(ENTITY_MANAGER)
  addScalarProvider(ScalarProvider.uuidByString())
//  addDraftInterceptor(BaseEntityDraftInterceptor())
}




